body {
    background-color: #e9ecf1;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
}

/* Header styles */
.header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #555;
    cursor: pointer;
}

.logo {
    color: #4285f4;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
}

/* Main content container */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    position: relative;
}

/* Class card styles */
.left-column {
    display: flex;
    flex-direction: column;
}

.class-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.class-card.disabled {
    opacity: 0.6;
}

.class-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.class-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.class-name {
    cursor: default;
}

.class-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.edit-icon, .delete-icon {
    color: #999;
    cursor: pointer;
}

.delete-icon:hover {
    color: #dc3545;
}

.menu-dots {
    color: #999;
    cursor: pointer;
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 100;
    width: 180px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    color: #333;
    display: block;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.class-content {
    padding: 15px;
}

.samples-label {
    margin-bottom: 15px;
    color: #555;
}

.sample-buttons {
    display: flex;
    gap: 10px;
}

.sample-button {
    background-color: #f0f5ff;
    border: none;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 90px;
}

.sample-button:hover {
    background-color: #e6eeff;
}

.sample-icon {
    color: #4285f4;
    font-size: 24px;
    margin-bottom: 5px;
}

.sample-label {
    color: #4285f4;
    font-size: 14px;
}

.samples-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.sample-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

/* Add class button */
.add-class-btn {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #888;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    width: 100%;
    font-size: 16px;
    margin-bottom: 20px;
}

.add-class-btn:hover {
    border-color: #4285f4;
    color: #4285f4;
}

.add-icon {
    margin-right: 8px;
}

/* Training and Preview sections */
.right-column {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    height: 100%;
}

.training-section, .preview-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.section-title {
    padding: 15px;
    font-weight: 500;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.train-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #f8f9fa;
    border: none;
    text-align: center;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.train-button:hover {
    background-color: #f0f0f0;
}
.training-status {
    padding: 10px;
    text-align: center;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin: 10px 0;
    transition: opacity 0.3s ease;
}

.training-status:empty {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
}
.advanced-dropdown {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #888;
    position: relative;
}

.advanced-panel {
    position: absolute;
    top: 100%; /* Position below the dropdown */
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #f0f0f0;
    padding: 10px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow for visibility */
}

.option-group {
    margin-bottom: 10px;
}

.option-group label {
    margin-right: 10px;
}

.preview-tabs {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}

.preview-tab {
    padding: 15px;
    flex: 1;
    text-align: center;
    background: none;
    border: none;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.preview-tab.active {
    color: #4285f4;
    border-bottom: 2px solid #4285f4;
}

.preview-content {
    padding: 30px 15px;
    text-align: center;
    color: #888;
}

#preview-webcam {
    width: 224px;
    height: 224px;
    margin-bottom: 20px;
}

.prediction-bars {
    width: 100%;
}

.prediction-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.prediction-bar .class-name {
    width: 100px;
    text-align: right;
    margin-right: 10px;
}

.bar-container {
    flex-grow: 1;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.bar {
    height: 100%;
    border-radius: 10px 0 0 10px;
}

.prediction-value {
    width: 50px;
    text-align: left;
    margin-left: 10px;
}

/* Connections */
.connections {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}